import { http } from "@/utils/http";
import type { Result } from "@/api/typeConfig";
/* 获取用户列表 */
export const getUserList = (params?: object) =>
  http.request<Result>("get", "/system/user/list", { params });

// 重置密码
export const resetPassword = data =>
  http.request<Result>("put", "/system/user/resetPwd", { data });

// 是否冻结用户
export const statusApi = data =>
  http.request<Result>("put", "/system/user/changeStatus", { data });

export const addApi = data =>
  http.request<Result>("post", "/system/user", { data });
export const editApi = data =>
  http.request<Result>("put", "/system/user", { data });
